<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ZHOUYANG
 * Date: 13-3-30
 * Time: 下午2:37
 */

include 'bootstrap.php';
$user_info = Model::getInstance('user')->needLogin();

if($user_info){
    $_session->delete('user_id');
    setcookie(SITE_PREFIX.'user_id',NULL,time()-3600*24,'/', COOKIE_DOMAIN);
}

redirect('login.php');